import Vue from 'vue'
import Vuex from 'vuex'
import loginUser from '@/store/modules/loginuser.js'
import getters from './getters.js'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    areaList: [],
  },
  mutations: {
    changeArea(state, params) {
      state.areaList = params;
    },
  },
  modules: {
    loginUser
  },
  getters
})
